package com.ruoyi.business.service;

import com.ruoyi.business.domain.BusinessComponent;
import com.ruoyi.business.domain.BusinessComponentComposite;

import java.util.List;

/**
 *业务组件Service接口
 *
 * @author ruoyi
 * @date 2025-09-04
 */
public interface IBusinessComponentService
{
    /**
     * 查询业务组件
     *
     * @param id 业务组件主键
     * @return 业务组件
     */
    public BusinessComponent selectBusinessComponentById(Long id);

    /**
     * 查询业务组件列表
     *
     * @param businessComponent 业务组件
     * @return 业务组件集合
     */
    public List<BusinessComponent> selectBusinessComponentList(BusinessComponent businessComponent);

    /**
     * 新增业务组件
     *
     * @param businessComponent 业务组件
     * @return 结果
     */
    public int insertBusinessComponent(BusinessComponent businessComponent);

    /**
     * 修改业务组件
     *
     * @param businessComponent 业务组件
     * @return 结果
     */
    public int updateBusinessComponent(BusinessComponent businessComponent);

    /**
     * 批量删除业务组件
     *
     * @param ids 需要删除的业务组件主键集合
     * @return 结果
     */
    public int deleteBusinessComponentByIds(Long[] ids);

    /**
     * 删除业务组件信息
     *
     * @param id 业务组件主键
     * @return 结果
     */
    public int deleteBusinessComponentById(Long id);

    /**
     * 提交新增
     * @param businessComponentComposite
     * @return
     */
    public Long commitAdd(BusinessComponentComposite businessComponentComposite);
    /**
     * 提交修改
     * @param businessComponentComposite
     * @return
     */
    public Long commitUpdate(BusinessComponentComposite businessComponentComposite);
    /**
     * 复合模式更新
     *
     * @param businessComponentComposite
     * @return
     */
    public Long updateBusinessComponentComposite(BusinessComponentComposite businessComponentComposite);
    /**
     * 复合模式插入
     *
     * @param businessComponentComposite
     * @return
     */
    public Long insertBusinessComponentComposite(BusinessComponentComposite businessComponentComposite);
}
